Skip to content

Stealth: guards, knife kills, hostages and the scav chop shop - #545

Draft
Jackriip wants to merge 85 commits into
masterfrom
feature/stealth
Draft

Jackriip wants to merge 85 commits into
masterfrom
feature/stealth

Conversation

@Jackriip

@Jackriip Jackriip commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Human NPC guards can be snuck past, knifed from behind or held off with one of their own at gunpoint, and a rare scav den is built around them. This is also the stealth layer the outpost security in #537 is built on.

Guards

Sight

  • A guard sees a cone ahead of it, far less in the dark and almost nothing behind it. Someone right at its shoulder in real light, or right in front of it, is noticed at once.
  • A ? over a guard's head means it noticed something and is coming to look. A ! means it has seen you.
  • Guards carry flashlights. The beam is real light from the hand that stops at walls, leads the guard's turns, sweeps while it searches and sputters when an EMP cuts it. A lit flashlight behind a guard in the dark makes it turn round.
  • Bodies get noticed, once each. A body in a locker or crate is hidden. A guard who saw you get into a locker opens it.

Hearing

  • Gunshots carry by loudness, and suppressors cut it. Footsteps, thrown things, knocks, broken glass, doors, falling bodies, shouts and blasts are heard, muffled by walls and doors.
  • A guard that goes missing is noticed. Guards with earpieces call trouble in; a jammer, an EMP or downing the caller stops the call.
  • A guard that loses you searches, then gives up. Line of sight through walls doesn't count.

Patrols

  • Guards walk routes, sentries hold posts and turn, and a guard drawn away walks back.
  • Guards in yellow and red zones are sharper than in green.

Disguises

  • Scav fatigues, a mask and a scav pass fool scav guards a piece at a time.
  • Close up, a guard asks for your pass. Show it and you're waved on; have none and it attacks.
  • A weapon in hand, running, being seen near a body, touching a guard, going somewhere off limits or a face it already knows give you away.

Kills

  • A blow on a guard that hasn't seen you crits harder, more so to the head. Head shots scale with the gun and the armour, from a burst skull down to a knockout. A riot shield never blocks a shot from behind.
  • Any sharp knife opens the throat of an unaware guard from behind, on the click. He can't shout or radio after. On anyone else, aimed at the head, it is a short hold from behind first; moving or turning breaks it.
  • The cut is tg's throat slit: a helmet or plating under the skin keeps the throat from being opened, and the blood thrown follows the wound that landed.

Hostages

  • Grab someone by the neck with a gun in hand and they're held up in front of you, on their feet, turning with you.
  • Hold one of a guard's friends like that and the others hold fire and keep back.
  • "Drop it!" and "Back off!" each work once per guard.
  • Hurt the hostage and they open fire. A stranger or another player held up in front of guards doesn't stop them.

Scav chop shop

A rare space ruin. Crews find it with a "contested-lane tip: scav chop shop" chart bought at an outpost.

  • Ten named guards: a red-eyed butcher and biker gang with cleavers, bone saws, hatchets, Makarovs and mini Uzis in the red zone.
  • Sweeping wall cameras that turn amber, then red, and send guards to where you stood. Wirecutters or an EMP put one out.
  • A boss carrying the vault pass, and a vault crate of chrome and a matte combat knife.

Images

A knife from behind: the hold, the cut and the blood thrown forward.

Knife execution

The scav chop shop in game: guard posts, patrol stops, camera sweeps and a way in from each airlock.

Scav chop shop

For reviewers

  • Code: voidcrew/modules/stealth/ (the den is scav_den.dm, scav_camera.dm and _maps/voidcrew/RandomRuins/SpaceRuins/rare_scav_den.dmm), the knife cut in voidcrew/modules/hyperviolence/overlays_exec/knife_executions.dm and its motion in voidcrew/modules/hyperviolence/visuals/knife_execution_motion.dm, defines in voidcrew/_DEFINES/stealth*.dm, tests in voidcrew/modules/unit_tests/voidcrew_stealth_*.dm and voidcrew_hv_knife_executions.dm.
  • Damage, crits, wounds, grabs, cuffs and stuns are tg's own. The stealth bonus only adds to the hyperviolence crit roll and never applies to a player target. The knife and hostage animations are visual only.
  • The guards are /mob/living/carbon/human/npc/ruin/trooper/scav (and /gunner, /lookout) on /datum/ai_controller/basic_controller/human_npc/stealth.
  • Admin tools (Debug): "Stealth Guards" (watch and force awareness, show sight and routes) and "Stealth Noise".

…n view of every guard's sight

Guards with nobody else noticed say a line, look round for a few seconds and go back to their route
after killing or downing their target. Hits from a second attacker during a fight are remembered.
Wary now fades after three minutes with nothing new. Admins can show the sight of every guard on
their level at once. The notice map moves off the blackboard, whose qdel sweep runtimed on it.
The ally check walked get_line(), which takes one turf per step. A shot at an
angle clips turfs beside that line, so a gunner fired past a guard standing
next to its target and hit him. The check now walks every turf the straight
line passes through.
…er 60 s

The ? fills as a guard notices you and only you see it. Alert is a red ! for
everyone; it drains while the guard has lost you, then turns into a yellow ?
that drains over the search. Drawn on the guard, so never through walls, and
above the lighting so it reads in the dark. Built only with a player nearby.

Wary now fades after 60 seconds with nothing new.
Standing marks sit 6 px higher and follow the head's height offset; a lying
guard's mark clears its body. No own ? shows in the moment after a search ends.
Guards walk back to their route or post after a chase instead of turning
sentry, in legs when it is far. Only being carried to another level or
map region makes a sentry; a guard that can't get back waits and retries.

The AI stays fully awake while any living player is on the level, the
scan runs from planning instead of the behaviour queue, and long walks
are no longer cancelled every step.

An alert guard still notices others and turns on someone clearly nearer
or on whoever hits it, at most once every few seconds. A glimpse while
searching is an alert. Notice is capped, and only what it sees now
decides its state. The candidate cap counts only those it can perceive.

A box that moves at its shoulder or bumps it is noticed. Blasts, fire,
gas and stuns with nobody to blame send it and nearby friends searching.
Cuffs, syringes, the strip menu and thrown items count as touches.

The head mark exists only while the scan runs, so it clears on cuffs,
stuns and player control. A player in the body gets no reactions.
…nocks, glass, doors, bodies, shouts and radios

Guards react to noise as a group. A small noise sends one guard to look, a second at the same spot two,
a third everyone; a guard that never comes back is missed. Gunfire, blasts and screams send the nearest
few running while sentries hold. Suppressed guns are heard only close by and in the open. Running is
heard and walking is not, by tg's own footstep rules, and running no longer makes you easier to see.
Guards who see or feel someone shout for help; lookouts carry an earpiece and call it in after three
seconds unless they are dropped, jammed or EMPed first. A guard that heard something shows a grey ?.
No sound ever gives a guard a target. Adds the Stealth Noise admin verb and a noise view.
…ets, a window, a locked door, carpet and plating
…sing guard, alarms, shouts, radios, and real shots, throws, knocks, falls, emotes and blasts
Guards switch a belt seclite on in the dark and whenever they are on edge;
an EMP cuts it out. A body found mid-search is called out, a quick volley
from one spot counts as one noise, and sentries keep facing their post.
…the dark, and stop flickering lights

Point-blank sight within 2 tiles in the cone is an alert on that look, with a quick look between scans;
3-4 tiles fill three times faster. The close radius behind a guard needs light that isn't its own beam.
A guard's own spot is judged without any guard seclites. No missing-friend line over a reported body.
An AI-switched light is re-laid as a turn would. Diagonal AI steps cost what a player's do.
The test room's east room gets a floor light in the middle.
… drop them, a matte knife backstabs, and their seclites can be looted
Stepping on broken glass or a dropped bulb makes a small noise guards go to look at, even at a walk. Every door a
player opens or shuts makes a small noise, and a guard who sees one move goes to look unless one of its own is beside
it; a door that keeps moving is only looked at twice in three minutes. Guard skill comes from a green, yellow or red
profile picked by the den's zone, a mapper var or an admin action; yellow is the old tuning. A gunner now steps back
two tiles to shoot open a locked locker, since a gun beside one only bashes it.
…rn, walk their patrols and don't snap-spot right after turning
tg's light setters don't rebuild a COMPLEX_LIGHT source, so the hidden lamp never emitted. Call update_light() when it switches or changes range.
…dd a back hatch, let sentries step toward small noises
…scav pass fool them by stage, they stop and ask for the pass, and weapons, running, bodies and known faces blow it
… a jungle planet there, clears the ground and loads the stealth test room, and drops the admin outside in a mortal playtest kit
… way, and the corridor-corner camera looks along both corridors
tg's pull turned him to face the attacker and shifted him 6 px, and the neck grab's floor trait laid him down for a second before he got up again. The pull offsets come off and his facing is restored in the same tick, and he is forced standing for the instant the floor trait is added and taken off.
…tg's slit maths, a takedown keeps its hold when the attacker turns or drags, and den vaults can pay a garrotte or a gun kata chip
… told to drop his locked gun puts it away, and the takedown test lets the alert settle
… cuts with the knife from his hand

The hold from behind is redrawn. The attacker steps in chest to back, his arms are stand-ins built from his own
picture (his real arms are hidden while they show), one hand takes the victim's shoulder and the other brings his
held knife to the throat. The victim is hauled back, fights the hold, and a survivor stumbles clear with a hand at
his throat. Bodies and arms are tweened through the same moments so hands stay on what they hold, and both bodies
end on the middle of their own tiles. A broken wind-up eases everything back.

Blood follows hv_knife_exec_spray (worked out here until this branch meets feature/stealth's knife_executions.dm):
a critical cut sprays two tiles ahead, a shallower one throws no spray of its own. The stab no longer opens the
skull wound picture.

A lying victim, or an attacker at a back corner, gets a plain lean-in and jab.
…nd on and stays hidden behind the victim's head
…oodied butchers with cleavers and bone saws, hatchets and short blades, Makarovs and red-zone mini Uzis
…ed den guards wear red lenses, and harvesters' gloves are bloodied
# Conflicts:
#	tgstation.dme
#	voidcrew/modules/hyperviolence/crits/crit_roll.dm
#	voidcrew/modules/hyperviolence/overlays_exec/executions.dm
#	voidcrew/modules/hyperviolence/visuals/_defines.dm
@Jackriip
Jackriip changed the base branch from feature/hyperviolence-mega to master November 16, 2026 19:54
…hip and the test planet move out, and a gun held on a neck-grabbed hostage poses them in front of the holder
…oke so its tip doesn't show past the victim's head
@Jackriip Jackriip changed the title Stealth: guards, takedowns, gun kata, hostages and the scav chop shop Stealth: guards, knife kills and hostages Nov 16, 2026
@Jackriip Jackriip changed the title Stealth: guards, knife kills and hostages Stealth: guards, knife kills, hostages and the scav chop shop Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant